package com.eliasbalasis.dwr4gwt.example;

import org.directwebremoting.annotations.DataTransferObject;
import org.directwebremoting.annotations.RemoteProperty;

@DataTransferObject
public class Person {
	private String name;
	private String description;

	public Person(String name, String description) {
		setName(name);
		setDescription(description);
	}

	@RemoteProperty
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	@RemoteProperty
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public String toString() {
		return "Name = "+"'"+getName()+"'"+", Description ="+"'"+getDescription()+"'";
	}
}
